<template>
  <!-- 加工视频 -->
  <div class="processingSample">
    <div class="remarks">
      <span style="color:#004CB3;">典型样件</span>
      <span>(图片为JPG或PNG格式）</span>
    </div>
    <div class="add">
      <div>
        <button>添加样件</button>
      </div>
    </div>
    <div class="itemBox">
      <div class="itemTitle">
        <div class="serial_number">序号</div>
        <div class="title">标题</div>
        <div class="description">概述</div>
        <div class="video">图片</div>
        <div class="operation">操作</div>
        <!-- <div class="explain">说明</div> -->
      </div>
      <div class="itemList">
        <div class="serial_number">1</div>
        <div class="title">
          <el-input
            type="textarea"
            placeholder="不超过10字"
            show-word-limit
            maxlength="10"
            :rows="4"
            v-model="textarea1"
          ></el-input>
        </div>
        <div class="description">
          <el-input
            type="textarea"
            placeholder="不超过50字"
            show-word-limit
            maxlength="50"
            :rows="5"
            v-model="textarea2"
          ></el-input>
        </div>
        <div class="video">
          <img src="../../../assets/world.png" alt="">
        </div>
        <div class="operation">
          <span class="import">导入</span>
          <span>删除</span>
        </div>
      </div>
      <div class="itemList">
        <div class="serial_number">2</div>
        <div class="title">
          <el-input
            type="textarea"
            placeholder="不超过10字"
            show-word-limit
            maxlength="10"
            :rows="4"
            v-model="textarea3"
          ></el-input>
        </div>
        <div class="description">
          <el-input
            type="textarea"
            placeholder="不超过50字"
            show-word-limit
            maxlength="50"
            :rows="5"
            v-model="textarea4"
          ></el-input>
        </div>
        <div class="video">
         <img src="../../../assets/world.png" alt="">
        </div>
        <div class="operation">
          <span class="import">导入</span>
          <span>删除</span>
        </div>
      </div>
      <div class="itemList">
        <div class="serial_number">3</div>
        <div class="title">
          <el-input
            type="textarea"
            placeholder="不超过10字"
            show-word-limit
            maxlength="10"
            :rows="4"
            v-model="textarea5"
          ></el-input>
        </div>
        <div class="description">
          <el-input
            type="textarea"
            placeholder="不超过50字"
            show-word-limit
            maxlength="50"
            :rows="5"
            v-model="textarea6"
          ></el-input>
        </div>
        <div class="video">
          <img src="../../../assets/world.png" alt="">
        </div>
        <div class="operation">
          <span class="import">导入</span>
          <span>删除</span>
        </div>
      </div>
    </div>
    <div class="btns">
      <button>保存</button>
      <button>提交</button>
      <button>预览</button>
    </div>
  </div>
</template>
<script>
export default {
  name: "",
  components: {},
  data() {
    return {
      textarea1: "",
      textarea2: "",
      textarea3: "",
      textarea4: "",
      textarea5: "",
      textarea6: "",
    };
  },
  created() {},
  methods: {},
};
</script>
<style lang='less' scoped>
.processingSample {
  font-size: 0.16rem;
  width: 16.4rem;
  padding-top: 0.4rem;
  padding-left: 0.6rem;
  padding-bottom: 0.6rem;
  .remarks {
    font-size: 0.18rem;
  }
  .add {
    height: 0.4rem;
    width: 15rem;
    // border: 1px solid red;
    div{
      position: relative;
      button {
        position: absolute;
        right: 0;
        width: 1.2rem;
        height: 0.4rem;
        background: rgba(0, 76, 179, 1);
        border-radius: 0.05rem;
        color: #fff;
        font-size: 0.16rem;
        border: none;
        outline: none;
        cursor: pointer;
      }  
    }
    
  }
  .itemBox {
    margin-top: 0.15rem;
    width: 15rem;
    font-size: 0.16rem;
    .itemTitle {
      height: 0.6rem;
      line-height: 0.6rem;
      background: rgba(250, 250, 250, 1);
      border: 1px solid rgba(204, 204, 204, 1);
      display: flex;
      div {
        text-align: center;
      }
      .serial_number {
        flex: 5%;
      }
      .title {
        flex: 12%;
      }
      .description {
        flex: 40%;
      }
      .video,
      .operation {
        flex: 15%;
      }
      .explain {
        flex: 13%;
      }
    }
    .itemList {
      display: flex;
      height: 1.7rem;
      border-bottom: 1px solid #cccccc;
      overflow: hidden;
      div {
        text-align: center;
        margin: auto;
      }
      .serial_number {
        flex: 5%;
        line-height: 1.7rem;
      }
      .title {
        flex: 12%;
        /deep/ .el-textarea__inner {
          font-size: 0.16rem;
        }
      }
      .description {
        flex: 40%;
        .el-textarea {
          width: 5rem;
        }
        /deep/ .el-textarea__inner {
          font-size: 0.16rem;
        }
      }
      .video,
      .operation {
        flex: 15%;
      }
      .video {
        video {
          width: 2rem;
        }
      }
      .explain {
        flex: 13%;
      }
      .operation {
        .import {
          color: #dc0110;
          margin-right: 0.23rem;
        }
        span {
          cursor: pointer;
        }
      }
    }
  }
  .btns {
    margin-top: 0.42rem;
    button {
      width: 0.8rem;
      height: 0.4rem;
      border-radius: 0.05rem;
      border: none;
      outline: none;
      color: #fff;
      font-weight: bold;
      font-size: 0.16rem;
    }
    button:nth-child(1) {
      margin-left: 5rem;
      background-color: #e29000;
    }
    button:nth-child(2) {
      background-color: #e20000;
      margin: 0 0.7rem;
    }
    button:nth-child(3) {
      background-color: #004cb3;
    }
  }
}
</style>